package com.yike.user.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yike.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商品销售统计
 *
 * @author Sakura
 * @since 2024-11-13
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_goods_count")
@ApiModel(value = "GoodsCount对象")
public class GoodsCount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品ID")
    private Long goodsId;

    @ApiModelProperty("销售额")
    private BigDecimal totalAmount;

    @ApiModelProperty("订单数量")
    private Integer orderNumber;

    @ApiModelProperty("购买数量")
    private Integer buyNumber;

    @ApiModelProperty("重复购买量")
    private Integer repeatOrderNumber;

    @ApiModelProperty("退单数量")
    private Integer refundNumber;

}
